package cn.trigram.file;

public interface FileSplitSegmentNamePolicy {

  String transformer(String fileName, long splitFileNum);

  class DefaultSplitFileNamePolicy implements FileSplitSegmentNamePolicy {

    @Override
    public String transformer(String fileName, long splitFileNum) {

      return "split_" + splitFileNum + "_" + fileName;
    }

  }

}
